package com.cqjtu.store.cart.service;


import com.cqjtu.store.address.pojo.entity.Address;
import com.cqjtu.store.cart.pojo.dto.*;
import com.cqjtu.store.cart.pojo.vo.CartVO;
import com.cqjtu.store.cart.pojo.vo.CountVO;
import com.cqjtu.store.common.R;
import com.cqjtu.store.user.pojo.vo.UserLoginVO;

import java.util.List;

public interface CartService {
    List<CartVO> getCartList(Integer[] selectedIds, UserLoginVO userLoginVO);

    R updateCartNumById(Integer id, Integer flag,Integer userId);
    void delete(Integer id, UserLoginVO userLoginVO);
    void deleteMore(CartDeletesDTO[] cartDDTOs, UserLoginVO userLoginVO);
    void clear(UserLoginVO userLoginVO);
    public void countCartList(CountDTO countDTO, UserLoginVO userLoginVO);

    void insert(CartInsertDTO cartInsertDTO, UserLoginVO userLoginVO);

    void removeByIds(Integer[] ids, UserLoginVO userLoginVO);
}
